<?php global $cv_option; ?>
	<div id="footer" class="clearfix">
		
		<div class="footer-line"></div>
		
		<div class="center">
			<?php get_sidebar( 'foot' );  ?>		
			
			<?php get_template_part( 'menu', 'secondary' ); // Loads the menu-primary.php template. ?>	
			
			<div class="social-media clearfix">
					<a class="twitter" href="<?php echo $cv_option['sm_twitter_url']; ?>">Twitter</a>
					<a class="facebook" href="<?php echo $cv_option['sm_facebook_url']; ?>">Facebook</a>
					<a class="email" href="mailto:<?php echo $cv_option['sm_email_url']; ?>">Email</a>
					<a class="rss" href="<?php echo $cv_option['sm_rss_url']; ?>">RSS</a>		
			</div>	
		</div><!-- .center -->		
		
		<div class="clear"></div>	
		
		<div class="bottom">
			
			<div class="center">
				<div id="branding-foot">
					<?php 
					if(!empty($cv_option['logo_foot'])) {?>
						<a href="<?php echo get_bloginfo('siteurl'); ?>"><img src="<?php echo esc_url($cv_option['logo_foot']); ?>" id="logo-foot"/></a>	
					<?php } ?>
				</div><!-- #branding -->	
			
				<div class="copyright-credit">
					<div class="copyright-center">
						<p class="copyright">
							<?php 
							if($cv_option['footer_text'] == '')
								$text = '';
							else
								$text = $cv_option['footer_text'] . '&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;';
							echo do_shortcode(stripslashes($text)); ?>
						</p>
						
						<p class="credit">
							<?php _e('Powered by', hybrid_get_textdomain()); ?>
							<a class="theme-link"  href="http://colorvila.com">
								<span>ColorVila</span>
							</a>
							<?php _e('and', hybrid_get_textdomain()); ?>
							<a class="wp-link" href="http://wordpress.org">	
								<span>WordPress</span>
							</a>
						</p>	
					</div>
				</div>	<!-- .copyright-credit -->
			</div><!-- .center -->
		</div><!-- .bottom -->
	</div><!-- #footer -->
		

</div><!-- #container -->	
	
<?php wp_footer(); ?>
</body>
</html>
